//
//  STCommentsListView.h
//  YiYueHairdresser
//
//  Created by zhouzhouzhou on 2018/10/11.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "STCommentCell.h"


@class STCommentsListView;
@protocol STCommentsListViewDelegate<NSObject>
@optional
-(void)commentsListViewSelNum:(int)selNum;//选择的评论

-(void)commentsListUpdataNew;//下拉刷新
-(void)commentsListAddMore;//上划加载


-(void)commentsListView:(STCommentsListView *)view indexpath:(NSIndexPath *)indexPath replayCommentText:(NSString *)replayStr;//回复评论
-(void)commentsListView:(STCommentsListView *)view indexpath:(NSIndexPath *)indexPath selImgNum:(int)selNum;
@end

@interface STCommentsListView : UIView<UITableViewDelegate,UITableViewDataSource,STCommentCellDelegate>{
    UITableView *commentTableView;
//    NSArray * arrComments;
}

@property(nonatomic,strong)NSMutableArray<STCommentInfoModel> * oldCommentData;

@property(nonatomic,strong)STDoorCommonModel * totalScore;//总评分
@property(nonatomic,weak)id<STCommentsListViewDelegate> delegate;

-(void)setCommentsListView;
-(void)reloadTotalCell;
-(void)reloadCommentListView;


@end
